package com.hiof.servercommunication.push;

import com.hiof.servercommunication.push.beans.LocationSendPacket;
import com.hiof.servercommunication.push.beans.SendPacket;

/**
 * Created by IntelliJ IDEA.
 * User: manish
 * Date: 3/23/12
 * Time: 2:57 PM
 * To change this template use File | Settings | File Templates.
 */
public class SenderFactory {
    public static Sender getSenderObject(SendPacket packet) {
        if (packet instanceof LocationSendPacket){
            return new LocationInfoSender((LocationSendPacket) packet);
    }
        return null;
    }
}

